<?php
class TextArea extends Validatable 
{

	/**
	 * Enter description here...
	 *
	 * @param string $name
	 * @param string $value
	 */
	public function __construct($name, $value = null, $sticky = true)
	{
		if($sticky && isset($_POST[$name]))
		{
			$value = $_POST[$name];
		}
		
		$this->setName($name);
		$this->setValue($value);
	}
	
	
	
	
	/**
	 * 
	 * @see HTMLElement::getHTML()
	 */
	public function getHTML()
	{
		$html = '<textarea ';
		$html = $this->addAttributes($html);
		$html .= '>';
		$html .= $this->value;
		$html .= '</textarea>';
		return $html;
	}
}

?>